﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Huioo.Learning.Agile.Payroll.Domain;

namespace Huioo.Learning.Agile.Payroll.Application
{
    public class ChangeNameTransaction : ChangeEmployeeTransaction
    {
        private readonly string name;

        public ChangeNameTransaction(int empId, string name)
            : base(empId)
        {
            this.name = name;
        }

        protected override void Change(Employee e)
        {
            e.Name = name;
        }
    }
}
